#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void MyStrcat(char*p1, char* p2)
{
	int i = 0;
	while (*p1!='\0')
	{
		p1++;
	}
	for (i; i < 20; i++)
	{
		*p1 = *p2;
		p1++;
		p2++;
	}
}
int main()
{
	char arr1[40] = { 0 };
	char arr2[20] = { 0 };
	gets(arr1);
	gets(arr2);
	MyStrcat(arr1, arr2);
	printf("%s", arr1);
	return 0;
}